package com.hzj.service;

import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient(name = "PROVIDER-CMN-8004")
public interface CmnService {

    @PostMapping("/provider/admin/cmn/dict/findByDictCode/{dictCode}")
    public Result findByDictCode(@PathVariable String dictCode);

    //根据省份id查询市
    @PostMapping("/provider/admin/cmn/dict//findChildData/{id}")
    public Result findChildData(@PathVariable int id);

}
